<?php
$table=mysql_real_escape_string($table);
$column=mysql_real_escape_string($column);
$wherecolumn=mysql_real_escape_string($wherecolumn);
$wherevalue=mysql_real_escape_string($wherevalue);
$q=$db->prepare("select $column from $table where $wherecolumn = :value");
$q->bindValue(':value',$wherevalue);
$q->execute();
$value=$q->fetch();


/*
unset($table);
unset($wherecolumn);
unset($wherevalue);
unset($value);
unset($q);
*/
?>